package ua.kpi_java_training.evgeniygusar.module3;

class Controller {
    public static void main(String [] args) {
        DesertInAction startLifeInDesert = new DesertInAction();

        Desert mydesert = new Desert();
        mydesert.createObstacles();

        AllOstriches ostrichesObject = new AllOstriches();
        ostrichesObject.addOstrich();
        System.out.print("Ostrich 1: ");
        ostrichesObject.getOstrich(0).showCoordinats();

        AllLeopards leopardsObject = new AllLeopards();

        leopardsObject.addLeopard();
        System.out.print("Leopard 1: ");
        leopardsObject.getLeopard(0).showCoordinats();

        for(int current_step=1; current_step<=mydesert.getNumberOfCycles(); current_step++) {
            startLifeInDesert.startAction(current_step);
        }

        startLifeInDesert.showStatistics();
    }
}
